From: Jasper St. Pierre Date: Fri, 19 Apr 2013 18:06:02 +0000 (-0400) Subject: st-theme-node: Disable transitions if animations-enabled is off X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4327 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c3775c0f56875cb7ca0651a6c6eb70ee0f8879b4;p=gnome-shell.git st-theme-node: Disable transitions if animations-enabled is off https://bugzilla.gnome.org/show_bug.cgi?id=698391 --- diff --git a/src/st/st-widget.c b/src/st/st-widget.c index 42992ece7..7133e8561 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -1533,6 +1533,7 @@ st_widget_recompute_style (StWidget *widget, StThemeNode *new_theme_node = st_widget_get_theme_node (widget); int transition_duration; gboolean paint_equal; + gboolean animations_enabled; if (new_theme_node == old_theme_node) { @@ -1551,7 +1552,11 @@ st_widget_recompute_style (StWidget *widget, if (paint_equal) st_theme_node_copy_cached_paint_state (new_theme_node, old_theme_node); - if (transition_duration > 0) + g_object_get (gtk_settings_get_default (), + "gtk-enable-animations", &animations_enabled, + NULL); + + if (animations_enabled && transition_duration > 0) { if (widget->priv->transition_animation != NULL) {